package com.itheima.test_dome.dao;

import com.itheima.test_dome.pojo.User;
import org.apache.ibatis.annotations.*;

@Mapper
public interface UserMapper {
     @Select("select * from user where id=#{id};")
     User getById(Integer id);
     @Insert("insert into user (id,name,age) values (#{id},#{name},#{age})")
    void add(User user);
    @Delete("delete from user where id=#{id};")
    void deleteById(Integer id);
    @Update("update user set name=#{name},age=#{age}")
    void updataById(User user);
}
